﻿using System;

namespace SPSDeploy.Extensions
{
    
    /// <summary>
    /// Message type
    /// </summary>
    public enum MessageType
    {
        Information,
        Warning
    }

    /// <summary>
    /// Message event arguments
    /// </summary>
    public class MessageEventArgs : EventArgs
    {

        // Private members
        private readonly MessageType type;
        private readonly string text;

        #region Properties
        /// <summary>
        /// Message type
        /// </summary>
        public MessageType Type
        {
            get
            {
                return type;
            }
        }

        /// <summary>
        /// Message text
        /// </summary>
        public string Text
        {
            get
            {
                return text;
            }
        }
        #endregion

        #region Initialization
        /// <summary>
        /// Initialization
        /// </summary>
        /// <param name="type"></param>
        /// <param name="text"></param>
        public MessageEventArgs(MessageType type, string text)
        {
            this.type = type;
            this.text = text;
        }
        #endregion

    }

}